package com.quectel.core.module.securitypatrol.dto;

import com.quectel.core.module.device.dto.DeviceDto;
import com.quectel.core.module.village.dto.VillageDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2022/05/07 14:10
 */
@Data
@Schema
public class SecurityPatrolRouteDto implements Serializable {

    /**
     *
     */
    @Schema(description = "")
    private Long id;

    /**
     *
     */
    @Schema(description = "")
    private Long tenantId;

    /**
     * 所属小区
     */
    @Schema(description = "所属小区")
    @NotNull
    private Long villageId;

    @Schema(description = "巡检种类1安防巡检2质量检查3环境保洁4绿化养护")
    private Byte category;

    /**
     * 路线名称
     */
    @Schema(description = "路线名称")
    @NotNull
    @Length(min = 1, max = 80)
    private String name;

    /**
     * 路线[A巡更设备,B巡更设备]
     */
    @Schema(description = "路线[A巡更设备,B巡更设备]")
    @NotNull
    private String routeArr;

    /**
     *
     */
    @Schema(description = "")
    private String creator;

    /**
     *
     */
    @Schema(description = "")
    private Date createTime;

    /**
     *
     */
    @Schema(description = "")
    private String editor;

    /**
     *
     */
    @Schema(description = "")
    private Date editTime;

    /************非数据库字段 start ************/
    @Schema(description = "园区名称")
    private String villageName;

    @Schema(description = "路线配置的设备")
    private List<DeviceDto> deviceDtoList;

    @Schema(description = "园区dto")
    private VillageDto villageDto;

    /************非数据库字段 end **************/
}
